package models

interface UserRepository {

    // user

    suspend fun me(): Result<User>

    fun logout()

    // admin

    suspend fun users(): Result<List<User>>

    suspend fun user(id: Int): Result<User>

    suspend fun delete(id: Int): Result<Boolean>

    suspend fun updateRole(id: Int, role: String): Result<Boolean>

    suspend fun updateLocation(id: Int, locationId: Int): Result<Boolean>
}